{include file="header.html"}
<div class="main-body"> 
{include file='gift/nav.html'}
 <table class="table table-bordered" width="100%">
  <tr>
   <td>id</td>
   <td>名称</td>
   <td>类别</td>
   <td>价格</td>
   <td>图片地址</td>
   <td>排序</td>
   <td>状态</td>
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.id}</td>
   <td>{$c.title}</td>
   <td>{$c.catid}</td>
   <td>{$c.price}</td>
   <td><img src="{$c.imgurl}"></td>
   <td>{$c.orderindex}</td>
   <td>{$c.status}</td>
<td><a href="admin.php?m=gift&a=add&id={$c.id}">编辑</a> <a href="admin.php?m=gift&a=show&id={$c.id}">查看</a> <a href="javascript:;" class="delete" url="admin.php?m=gift&a=delete&id={$c.id}">删除</a></td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div>
{include file="footer.html"}
</body>
</html>